<template>
  <div>
    <div class="num">
      <span v-for="n in nums">{{ n }}</span>
      <div class="title">{{ props.numTitle }}</div>
      <div class="time">数据时间：{{ props.numTime }}</div>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref, onBeforeMount } from 'vue'
  const props = defineProps<{ nums: nums; numTitle:numTitle; numTime:numTime }>()
  const formatNum = () => {
    console.log(props.nums, props.numTitle, props.numTime)
  }
  onBeforeMount(formatNum)
</script>
<style lang="less" scoped>
.num {
  height: 70px;
  width: 270px;
  color: #353a42;
  font-size: 14px;
  span {
    width: 25px;
    height: 35px;
    display: inline-block;
    float: left;
    text-align: center;
    font-weight: bolder;
    font-size: 18px;
    line-height: 35px;
    margin-right: 3px;
    color: #2F7DF1;
    background: #d5e5fc;
  }
  .title {
    line-height: 58px;
  }
  .time {
    margin-top: -20px;
    color: #AAA;
  }
}
</style>
